package com.base.cn.platform.os.service.manage.integralgood;

import com.base.cn.platform.os.entity.integralgood.IntegralCardVoucher;
import com.base.cn.platform.os.entity.integralgood.IntegralCardVoucherExpand;
import com.base.cn.platform.os.entity.integralgood.IntegralVirtualGood;
import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 虚拟商品卡密
 *
 * @author zjh
 * @create 2019-10-31
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface IntegralCardVoucherService extends BaseService {

     String path =contextPath+"/IntegralCardVoucher/";


    /**
     * 保存积分兑换商品卡密
     * @param integralGood
     * @return
     */
    @RequestMapping(path+"saveListEntity")
    void  saveListEntity(@RequestBody List<IntegralCardVoucher> integralGood,@RequestParam("shopName") String shopName);


    /**
     * 获取卡密
     * @param integralCardVoucher
     * @return
     */
    @RequestMapping(path+"geiInfoIntegralCardVoucher")
    Map geiInfoIntegralCardVoucher(@RequestBody IntegralCardVoucherExpand integralCardVoucher);



    /**
     * 获取列表
     * @param currentPage
     * @param integralVirtualGood
     * @return
     */
    @RequestMapping(path+"getPageList")
    Map getPageList(@RequestParam(value = "currentPage",required = false,defaultValue = "1") int currentPage , @RequestBody IntegralCardVoucher integralVirtualGood );


}
